export default [
  {
    path: '/user',
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
  },
  {
    path: '/overView',
    name: '站点概况',
    icon: 'icon-menu_home',
    component: './OverView/index_newui',
    access: 'overView',
  },
  {
    path: '/bigData',
    layout: false,
    name: '整体监控',
    icon: 'icon-menu_station_monitoring',
    component: './BigData/index',
    target: '_blank',
    access: 'bigData',
  },
  {
    path: '/stationmonitor',
    name: '站点监控',
    icon: 'icon-menu_monitoring',
    access: 'stationmonitor',
    routes: [
      {
        path: '/stationmonitor/mainWiringDiagram',
        name: '主接线图',
        component: './SiteMonitor/MainWiringDiagram',
        access: 'stationmonitor:mainWiringDiagram',
      },
      {
        path: '/stationmonitor/history',
        name: '历史数据',
        component: './SiteMonitor/History',
        access: 'stationmonitor:history',
      },
      {
        path: '/stationmonitor/hisCurve',
        name: '历史曲线',
        component: './SiteMonitor/HisCurve',
        access: 'stationmonitor:hisCurve',
      },
      {
        path: '/stationmonitor/realtime',
        name: '实时监控',
        component: './SiteMonitor/RealtimeMonitoring',
        access: 'stationmonitor:realtime',
      },
    ],
  },
  {
    path: '/monitor',
    name: '设备监控',
    icon: 'icon-menu_monitoring',
    access: 'monitor',
    routes: [
      {
        path: '/monitor/pcs',
        name: 'PCS监控',
        component: './Monitor/PCSMonitor',
        access: 'monitor:pcs',
      },
      {
        path: '/monitor/lc',
        name: 'LC监控',
        component: './Monitor/LCMonitor',
        access: 'monitor:lc',
      },
      {
        path: '/monitor/load',
        name: '负载监控',
        component: './Monitor/LoadMonitor',
        access: 'monitor:load',
      },
      {
        path: '/monitor/ecMonitor',
        name: '环控监控',
        component: './Monitor/ECMonitor',
        access: 'monitor:ec',
      },
      {
        path: '/monitor/battery',
        name: '电池监控',
        component: './Monitor/BatteryMonitor',
        access: 'monitor:battery',
      },
      {
        path: '/monitor/equipmentView',
        name: '设备概况',
        component: './Monitor/EquipmentView',
        access: 'monitor:equipment',
      },
    ],
  },
  {
    path: '/diagnosis',
    name: '诊断预测',
    icon: 'icon-menu_diagnose',
    access: 'diagnosis',
    routes: [
      {
        name: '全景分析',
        path: '/diagnosis/panoramicAnalysis',
        component: './Forecast/PanoramicAnalysis',
        access: 'diagnosis:panoramic',
      },
      {
        path: '/diagnosis/batteryfailure',
        name: '电池故障诊断',
        component: './Forecast/Battery',
        access: 'diagnosis:battery',
      },
      {
        path: '/diagnosis/riskProfile',
        name: '风险预测',
        component: './Forecast/RiskProfile',
        access: 'diagnosis:risk',
      },
      {
        path: '/diagnosis/performancePredicte',
        name: '性能预测',
        component: './Forecast/PerformancePredicte',
        access: 'diagnosis:performance',
      },
      {
        path: '/diagnosis/reportAnalysis',
        name: '报告分析',
        component: './Forecast/ReportAnalysis',
        access: 'diagnosis:report',
      },
    ],
  },
  {
    path: '/stationmonitor',
    name: '站点监控',
    icon: 'icon-menu_monitoring',
    access: 'stationmonitor',
    routes: [
      {
        path: '/stationmonitor/history',
        component: './SiteMonitor/History',
        hideInMenu: true,
        access: 'stationmonitor:history',
      },
    ],
  },
  {
    path: '/battery',
    name: '电池健康评估',
    icon: 'icon-menu_battery',
    access: 'health',
    routes: [
      {
        path: '/battery/voltage',
        name: '电压一致性评估',
        component: './BatteryHealthEvaluate/VoltageConsistency',
        access: 'health:voltage',
      },
      {
        path: '/battery/temperature',
        name: '温度一致性评估',
        component: './BatteryHealthEvaluate/TemperatureConsistency',
        access: 'health:temp',
      },
      {
        path: '/battery/socConsistency',
        name: 'SOC一致性评估',
        component: './BatteryHealthEvaluate/SocConsistency',
        access: 'health:soc',
      },
      {
        path: '/battery/electricConsistency',
        name: '簇电流一致性评估',
        component: './BatteryHealthEvaluate/ElectricConsistency',
        access: 'health:cluster',
      },
      {
        path: '/battery/capacity',
        name: '容量一致性评估',
        component: './BatteryHealthEvaluate/Capacity',
        access: 'health:capacity',
      },
      {
        path: '/battery/cycle',
        name: '循环寿命评估',
        component: './BatteryHealthEvaluate/Cycle',
        access: 'health:cycle',
      },
      {
        path: '/battery/saveEvaluate',
        name: '安全运行与评估',
        component: './BatteryHealthEvaluate/SaveEvaluate',
        access: 'health:security',
      },
      {
        path: '/battery/workVal',
        name: '工况统计',
        component: './Statistics/WorkVal',
        access: 'health:work',
      },
      {
        path: '/battery/dod',
        name: '电池曲线',
        component: './Statistics/DOD',
        access: 'health:dod',
      },
    ],
  },
  {
    path: '/strategy',
    name: '策略控制',
    icon: 'icon-menu_strategy',
    access: 'strategy',
    routes: [
      {
        path: '/strategy/peakArbitrage',
        name: '峰谷套利',
        access: 'strategy:peak',
        hideChildrenInMenu: true,
        routes: [
          {
            path: '',
            component: './Strategy/PeakArbitrage/',
          },
          {
            path: 'detail',
            name: '详情',
            component: './Strategy/PeakArbitrage/Detail',
            hideInMenu: true,
            access: 'strategy:peak',
          },
        ],
      },
      {
        path: '/strategy/track',
        name: '策略跟踪',
        component: './Strategy/StrategyTrack',
        access: 'strategy:track',
      },
    ],
  },
  {
    path: '/alarm',
    name: '告警管理',
    icon: 'icon-menu_alarm',
    access: 'event',
    routes: [
      {
        path: '/alarm/list',
        name: '告警列表',
        component: './Alarm/List/',
        access: 'event:alarm',
      },
      {
        path: '/alarm/ruleConfig',
        name: '告警规则',
        component: './Alarm/RuleConfig/',
        access: 'event:rule',
      },
    ],
  },
  {
    path: '/statistics',
    name: '统计分析',
    icon: 'icon-menu_statistic',
    access: 'statistic',
    routes: [
      {
        path: '/statistics/electric',
        name: '充放电量报表',
        component: './Statistics/Electric',
        access: 'statistic:charge',
      },
      {
        path: '/statistics/income',
        name: '收益统计',
        hideChildrenInMenu: true,
        access: 'statistic:income',
        routes: [
          {
            path: '',
            component: './Statistics/Income',
          },
          {
            path: 'esRevenue',
            name: '储能放电价差收益',
            component: './Statistics/Income/EnergyStorageRevenue',
            access: 'statistic:income',
            hideInMenu: true,
          },
          {
            path: 'pvRevenue',
            name: '光伏价差收益',
            component: './Statistics/Income/PvRevenue',
            access: 'statistic:income',
            hideInMenu: true,
          },
          {
            path: 'esCost',
            name: '储能充电价差成本',
            component: './Statistics/Income/EnergyStorageCost',
            access: 'statistic:income',
            hideInMenu: true,
          },
        ],
      },
      {
        path: '/statistics/net',
        name: '上下网电量报表',
        component: './Statistics/Net',
        access: 'statistic:net',
      },
      {
        path: '/statistics/powerGeneration',
        name: '发电量报表',
        component: './Statistics/PowerGeneration',
        access: 'statistic:powerGeneration',
      },
      {
        path: '/statistics/electricityConsumption',
        name: '用电量报表',
        component: './Statistics/ElectricityConsumption',
        access: 'statistic:electricityConsumption',
      },
      {
        path: '/statistics/transferEfficiency',
        name: '转换效率趋势',
        component: './Statistics/TransferEfficiency',
        access: 'statistic:transferEfficiency',
      },
      {
        path: '/statistics/battery',
        name: '电池曲线',
        component: './Statistics/Battery',
        access: 'statistic:battery',
      },
    ],
  },
  {
    path: '/remoteUpgrade',
    name: '远程升级',
    icon: 'icon-menu_updata',
    access: 'remote',
    routes: [
      {
        path: '/remoteUpgrade/versionManagement',
        name: '版本管理',
        component: './RemoteUpgrade/VersionManagement',
        access: 'remote:version',
      },
      {
        path: '/remoteUpgrade/emsComponentManagement',
        name: 'EMS组件版本管理',
        access: 'remote:emscom',
        routes: [
          {
            path: '/remoteUpgrade/emsComponentManagement/update',
            name: '更新',
            hideInMenu: true,
            component: './RemoteUpgrade/EmsComponentManagement/UpdateDetail',
            access: 'remote:emscom',
          },
          {
            path: '',
            component: './RemoteUpgrade/EmsComponentManagement',
            hideInMenu: true,
          },
        ],
      },
      {
        path: '/remoteUpgrade/LcComponentManagement',
        name: '储能柜版本管理',
        access: 'remote:lc',
        routes: [
          {
            path: '/remoteUpgrade/LcComponentManagement/update',
            name: '更新',
            hideInMenu: true,
            component: './RemoteUpgrade/LcComponentManagement/UpdateDetail',
            access: 'remote:lc',
          },
          {
            path: '',
            component: './RemoteUpgrade/LcComponentManagement',
            hideInMenu: true,
          },
        ],
      },
      {
        path: '/remoteUpgrade/SiteConfigurationManagement',
        name: '站点配置管理',
        access: 'remote:siteconfig',
        routes: [
          {
            path: '/remoteUpgrade/SiteConfigurationManagement/update',
            name: '更新',
            hideInMenu: true,
            component: './RemoteUpgrade/SiteConfiguration/UpdateDetail',
            access: 'remote:siteconfig',
          },
          {
            path: '/remoteUpgrade/SiteConfigurationManagement/ems',
            name: 'EMS 控制器配置',
            hideInMenu: true,
            component: './RemoteUpgrade/SiteConfiguration/EmsController',
            access: 'remote:siteconfig',
          },
          {
            path: '/remoteUpgrade/SiteConfigurationManagement/ems/emsCommunication',
            name: '通信参数 ',
            hideInMenu: true,
            component: './RemoteUpgrade/SiteConfiguration/EmsControllerCommunication',
            access: 'remote:siteconfig',
          },
          {
            path: '/remoteUpgrade/SiteConfigurationManagement/ems/emsControllerSerial',
            name: '序列号 ',
            hideInMenu: true,
            component: './RemoteUpgrade/SiteConfiguration/EmsControllerSerial',
            access: 'remote:siteconfig',
          },
          {
            path: '',
            component: './RemoteUpgrade/SiteConfiguration',
            hideInMenu: true,
          },
        ],
      },
      {
        path: '/remoteUpgrade/upgradeManagement',
        name: '升级管理',
        access: 'remote:ota',
        routes: [
          {
            path: '/remoteUpgrade/upgradeManagement/detail',
            name: '详情查看',
            hideInMenu: true,
            component: './RemoteUpgrade/UpgradeManagement/UpdateDetail',
            access: 'remote:ota',
          },
          {
            path: '',
            component: './RemoteUpgrade/UpgradeManagement',
            hideInMenu: true,
          },
        ],
      },
      {
        path: '/remoteUpgrade/remoteMaintenance',
        name: '服务状态',
        access: 'remote:maintenance',
        routes: [
          {
            path: 'detail',
            name: '详情',
            component: './RemoteUpgrade/RemoteMaintenance/Detail',
            hideInMenu: true,
            access: 'remote:maintenance',
          },
          {
            path: 'ota',
            name: 'OTA',
            component: './RemoteUpgrade/EmsComponentManagement/OverviewCom',
            hideInMenu: true,
            access: 'remote:maintenance',
          },
          {
            path: 'ota/update',
            name: '更新',
            component: './RemoteUpgrade/EmsComponentManagement/UpdateDetail',
            hideInMenu: true,
            access: 'remote:maintenance',
          },
          {
            path: '',
            component: './RemoteUpgrade/RemoteMaintenance',
            hideInMenu: true,
          },
        ],
      },
    ],
  },
  {
    path: '/site',
    name: '站点管理',
    icon: 'icon-a-menu_huaban1fuben11',
    routes: [
      {
        path: '/site/siteInfo',
        component: './Site/SiteInfo',
        hideInMenu: true,
        access: 'sys:station',
      },
      {
        path: '/site/siteSetting',
        component: './Site/SiteSetting',
        hideInMenu: true,
        access: 'sys:station',
      },
      {
        path: '/site/siteDevice',
        component: './Site/SiteDevice',
        hideInMenu: true,
        access: 'sys:station',
      },
      {
        path: '/site/price',
        component: './Site/SiteElectricityPrice',
        hideInMenu: true,
        access: 'sys:station:price',
      },
    ],
  },
  {
    path: '/system',
    name: '系统管理',
    icon: 'icon-menu_system',
    routes: [
      {
        path: '/system/user',
        name: '用户管理',
        component: './System/User/',
        access: 'sys:user',
      },
      {
        path: '/system/tenantryManager',
        name: '租户管理',
        component: './System/TenantryManager',
        access: 'sys:tenant',
      },
      {
        path: '/system/organization',
        name: '组织管理',
        component: './System/Organization',
        access: 'sys:org',
      },
      {
        path: '/system/site',
        name: '站点管理',
        access: 'sys:station',
        hideChildrenInMenu: true,
        routes: [
          {
            path: '',
            component: './System/Site/',
            //hideInMenu: true,
          },
          {
            path: 'config',
            name: '服务配置',
            component: './System/Site/ServiceConfig',
            hideInMenu: true,
            access: 'sys:station:serviceConf',
          },
          {
            path: 'archives',
            name: '采集档案',
            component: './System/Site/CollectingArchives',
            hideInMenu: true,
            access: 'sys:station:collectArchives',
          },
          {
            path: 'param',
            name: '参数配置',
            component: './System/Site/ParamConfig',
            hideInMenu: true,
            access: 'sys:station:paramConf',
          },
          {
            path: 'detail',
            name: '详情',
            component: './System/Site/Detail',
            hideInMenu: true,
            access: 'sys:station:detail',
          },
        ],
      },
      {
        path: '/system/dictionary',
        name: '数据字典',
        access: 'sys:dict',
        hideChildrenInMenu: true,
        routes: [
          {
            path: 'config',
            name: '配置字典项',
            component: './System/Dictionary/Config',
            hideInMenu: true,
            access: 'sys:dict:config',
          },
          {
            path: '',
            component: './System/Dictionary/',
            hideInMenu: true,
          },
        ],
      },
      {
        path: '/system/journal',
        name: '系统日志',
        component: './System/Journal',
        access: 'sys:log',
      },
      {
        path: '/system/roleManager',
        name: '角色管理',
        component: './System/RoleManager',
        access: 'sys:role',
      },
      {
        path: '/system/fun',
        name: '菜单管理',
        component: './System/Fun',
        access: 'sys:fun',
      },
      {
        path: '/system/device',
        name: '设备管理',
        component: './System/Device',
        access: 'sys:device',
      },
      {
        path: '/system/factoryDevice',
        name: '出厂设备',
        component: './System/FactoryDevice',
        access: 'sys:factoryDevice',
      },
    ],
  },
  {
    path: '/account',
    name: '用户',
    hideInMenu: true,
    routes: [
      {
        path: '/account/center',
        name: '个人中心',
        component: './Person/index',
      },
    ],
  },
  {
    path: '/h5',
    layout: false,
    routes: [{ name: 'app 下载', path: '/h5/appDownload', component: './H5/AppDownload' }],
  },
  { path: '/' },
  { path: '*', layout: false, component: './404' },
];
